Skip to main content
请求


curl --location 'https://openapi.gs-robot.com/openapi/v2/robot/tasks/temp/withoutSite'
--header 'Content-Type: application/json'
--header 'authorization: Bearer {{token}}'
--data '{
"productId": "TEST00-0000-000-S001",
"tempTaskCommand": {
"cleaningMode": "清扫",
"loop": false,
"loopCount": 2,
"taskName": "test",
"mapName": "10f_cloud",
"startParam": [
{
"mapId": "41c394d4-9fa8-4b10-83c3-dd1ed639f111",
"areaId": "1"
}
]
}
}'

输出

{
"name": "robots/TEST00-0000-000-S001/commands/2c062f48-4636-47e5-9b77-377c4abe9b8d",
"parent": "robots/TEST00-0000-000-S001",
"serialNumber": "TEST00-0000-000-S001",
"user": "e0738c33d7df4f8b9aed80406335baf4",
"createTime": "2025-10-30T08:26:23.586049325Z",
"updateTime": "2025-10-30T08:26:23.586063636Z",
"startTime": "2025-10-30T08:26:23.580219886Z",
"startDelay": 0,
"commandParameter": {},
"state": "WAITING",
"taskQueueId": "",
"navInstanceId": "",
"rawCommandType": "send_temp_task"
}